﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using KCMS.BusinessLogic.Interfaces;
using KCMS.DataAcsess.Interfaces;
using StructureMap;
using AutoMapper;
using KCMS.BusinessLogic.Models;

namespace KCMS.BusinessLogic.Engine
{
    public class PictureService:IPictureService
    {
        //private IPictureManager pgm = ObjectFactory.GetInstance<IPictureManager>();
        //public Models.Picture getById(Guid id)
        //{
        //    DataAcsess.Entitys.PictureEntity pictureEntity = pgm.getById(id);
        //    return Mapper.Map<DataAcsess.Entitys.PictureEntity, Models.Picture>(pictureEntity);
        //}
       
        //public IEnumerable<Models.Picture> getAll()
        //{
        //    return Mapper.Map<IEnumerable<DataAcsess.Entitys.PictureEntity>, IEnumerable<Models.Picture>>(pgm.getAll());

        //}

        //public void update(Picture picture)
        //{
        //    pgm.update(Mapper.Map<Picture, DataAcsess.Entitys.PictureEntity>(picture));
        //}


        //public void save(Picture picture)
        //{
        //    pgm.save(Mapper.Map<Picture, DataAcsess.Entitys.PictureEntity>(picture));
        //}


        //public void delete(Guid id)
        //{
        //    pgm.delete(id);
        //}
    }
}
